﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="seller_submitPriceList.aspx.cs"
    Inherits="PeisongWeb.seller_submitPriceList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>采购配送系统-供应商报价管理</title>
    <!--#include file="/global.inc" -->
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager runat="server" ID="ResourceManager1">
    </asp:ScriptManager>
    <div id="container">
        <uc1:sellerHeader runat="server" ID="header" />
        <div id="homemain">
            <div id="main">
                <div class="title">
                    <div class="title_text">
                        <ul>
                            <li class="color1">商品报价</li>
                        </ul>
                    </div>
                    <div style="overflow: hidden; height: 36px;">
                        <div style="float: left; padding-top: 12px;">
                            <img alt="" src="/app_common/images/news.gif" /></div>
                        <div class="title_news" style="width: 620px;">
                            <ul>
                                <li>特别提醒：一旦需要调整商品价格，请于每天<asp:Literal ID="lblTime" runat="server"></asp:Literal>之前完成商品报价。</li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="line_top">
                </div>
                <div id="mainmiddle">
                    <div class="search_list">
                        <div class="search_title">
                            <span>查询搜索</span>
                        </div>
                        <asp:UpdatePanel runat="server" ID="UpdatePanel1">
                            <Triggers>
                                <asp:PostBackTrigger ControlID="btn_select" />
                            </Triggers>
                            <ContentTemplate>
                                <div class="listsearch">
                                    <ul>
                                        <li style="margin-right: 15px;">大类：<asp:DropDownList ID="DropParentCategory" runat="server"
                                            DataTextField="name" DataValueField="ParentId" AutoPostBack="True" OnSelectedIndexChanged="DropParentCategory_SelectedIndexChanged">
                                        </asp:DropDownList>
                                        </li>
                                        <li style="margin-right: 15px;">小类：<asp:DropDownList ID="DropChildCategory" runat="server"
                                            DataTextField="name" DataValueField="categoryId">
                                        </asp:DropDownList>
                                        </li>
                                        <li>
                                            <label>
                                                商品名称：</label>
                                            <input runat="server" id="txt_productName" name="" type="text" />
                                        </li>
                                        <li>
                                            <asp:Button runat="server" ID="btn_select" Text="查 询" OnClick="btn_select_Click" />&nbsp;&nbsp;<input type="button" id="inClear" onclick="javascript:ClearInputValue();" value="重置" />
                                        </li>
                                    </ul>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                    <div class="list_content">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr class="list_title">
                                <td width="10%">
                                    特价
                                </td>
                                <td width="10%">
                                    商品资料
                                </td>
                                <td width="10%">
                                    商品编号
                                </td>
                                <td width="15%">
                                    商品名称
                                </td>
                                <td width="10%">
                                    当前供应价
                                </td>
                                <td width="10%">
                                    当前供应状态
                                </td>
                                <td width="10%">
                                    供应操作
                                </td>
                                <td width="25%">
                                    操作
                                </td>
                            </tr>
                        </table>
                        <table border="0" cellspacing="0" cellpadding="0" class="list_border">
                            <asp:Repeater runat="server" ID="rpt_list" OnItemDataBound="rpt_list_ItemDataBound">
                                <ItemTemplate>
                                    <tr class="tr_color" style="line-height: 30px;">
                                        <td width="10%">
                                        </td>
                                        <td width="10%">
                                            <a href="javascript:void(showProductDetail('/productDetail_<%#Eval("productId")%>.html', 700,500));">
                                                <img onmouseenter='showProductDetails(this,event);' p1='<%#DataBinder.Eval(Container.DataItem,"productName") %>'
                                                    p2='<%#DataBinder.Eval(Container.DataItem,"unit") %>' p3='<%#DataBinder.Eval(Container.DataItem,"standard") %>'
                                                    onmouseleave='hideProductDetaisl();' alt="" src="/upload_files/thumbnail1/<%#DataBinder.Eval(Container.DataItem,"systemName") %>"
                                                    width="20" height="20" />
                                            </a>
                                        </td>
                                        <td width="10%">
                                            <%#DataBinder.Eval(Container.DataItem,"productNo") %>
                                        </td>
                                        <td width="15%">
                                            <%#DataBinder.Eval(Container.DataItem, "productName")%>&nbsp;<%# Eval("isCurrentCost").ToString()=="True"?"<font style='color:red'>(时价)</font>":"" %>
                                        </td>
                                        <td width="10%">
                                        </td>
                                        <td width="10%">
                                        </td>
                                        <td width="10%">
                                        </td>
                                        <td width="25%" align="right" style="padding-right: 5px;">
                                            <input type="button" value="保存" <%#DataBinder.Eval(Container.DataItem,"quotationMode").ToString()!="1"?"disabled":"" %>
                                                onclick="return clientSubmitPrice(this,<%#DataBinder.Eval(Container.DataItem,"productId") %>);" />
                                        </td>
                                    </tr>
                                    <asp:Repeater runat="server" ID="rpt_price_list">
                                        <ItemTemplate>
                                            <tr style="line-height: 30px;" class='product_<%#DataBinder.Eval(Container.DataItem,"productId") %>'>
                                                <td>
                                                    <img alt="设置特价" title="点击图片设置特价" width="18px" height="20px" style="cursor: pointer;"
                                                        onclick="setFavourite(this,<%#DataBinder.Eval(Container.DataItem,"srId") %>);"
                                                        src="/app_common/images/<%#(bool)DataBinder.Eval(Container.DataItem,"isPromotions")?"star_on.gif":"star_off.gif" %>" />
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                    <%#DataBinder.Eval(Container.DataItem,"businessNatureName") %>
                                                </td>
                                                <td style="color: #fa0101;">
                                                    <%#DataBinder.Eval(Container.DataItem, "sellerPrice","{0:F2}")%>
                                                </td>
                                                <td>
                                                    <%#Convert.ToBoolean(DataBinder.Eval(Container.DataItem,"isCancel"))?"取消中":"供应中" %>
                                                </td>
                                                <td>
                                                    [<a href="javascript:void(0);" onclick="supplyOperate(this,<%#DataBinder.Eval(Container.DataItem,"srId") %>)"
                                                        style="color: <%#Convert.ToBoolean(DataBinder.Eval(Container.DataItem,"isCancel"))?"#f00":" #54862c" %>"><%#Convert.ToBoolean(DataBinder.Eval(Container.DataItem,"isCancel"))?"继续供应":"取消供应" %></a>]
                                                </td>
                                                <td>
                                                    <input id="txtNewPrice<%# Container.ItemIndex+1%>" bn='<%#DataBinder.Eval(Container.DataItem,"businessNature") %>'
                                                        name="txtNewPrice" style="text-align: right;" type="text" size="4" />&nbsp;元/<label><%#DataBinder.Eval(Container.DataItem,"unit") %></label>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </div>
                    <div class="page">
                        <webdiyer:AspNetPager ID="AspNetPager1" NumericButtonType="Text" MoreButtonType="Text"
                            AlwaysShow="true" Width="98%" runat="server" PageSize="15" InvalidPageIndexErrorMessage="无效页码"
                            NumericButtonCount="5" PageIndexOutOfRangeErrorMessage="页码超出范围" ShowCustomInfoSection="Left"
                            CustomInfoHTML=" 每页%PageSize%条记录 | 总共%RecordCount%条记录 " CustomInfoTextAlign="Left"
                            HorizontalAlign="Right" OnPageChanged="AspNetPager1_PageChanged" NextPageText=">"
                            FirstPageText="<<首页" LastPageText="末页>>" PrevPageText="<" CssClass="paginator"
                            CurrentPageButtonClass="cpb">
                        </webdiyer:AspNetPager>
                    </div>
                </div>
            </div>
        </div>
        <uc1:sellerFooter runat="server" ID="footer" />
    </div>
    <div class="details" id="dvPanel" style="z-index: 1000;">
        <div class="details_left">
            <img alt="" src="/app_common/images/arrow.png" /></div>
        <div class="details_right">
            <div class="details_top">
                <img id="productImage" src="/app_common/images/tp.gif" alt="" /></div>
            <div class="details_middle">
                <ul>
                    <li>名 称：<span id="productName"></span></li>
                    <li>单 位：<span id="productUnit"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;规 格：<span
                        id="productStandard"></span></li>
                </ul>
            </div>
            <div class="details_buttom">
                <span>特别提醒：请在报价时仔细核对报价和商品信息。</span>
            </div>
        </div>
    </div>
    </form>
    <cb:Include ID="sellerSubmitPriceJsCtrl" runat="server" SetName="sellerSubmitPrice" />
    <script type="text/javascript">
        window.ClearInputValue=function()
        {
            $("#DropParentCategory").attr("value","0");
            $("#DropChildCategory").attr("value","0");
            $("#txt_productName").val("");
        }
    </script>
</body>
</html>
